AfterDelete Event

       

Occurs after the user deletes a selected record in the DataGrid control.

Syntax

Private Sub object_AfterDelete ([index As Integer,] colindex As Integer)

The AfterDelete event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index An integer that identifies a control if it is in a control array.
colindex An integer that identifies the column.

Remarks

When the user selects a record selector in the DataGrid control and presses DEL or CTRL+X, the selected row is deleted. Before the record is deleted, the BeforeDelete event is triggered. Once the row is deleted, the AfterDelete event is triggered. The row selected for deletion is available in the collection provided by the SelBookmarks property.